package guan.shop.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebAppConfiguration implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/image/swiper/**").addResourceLocations("file:F:\\CodeProject\\Java\\shop\\src\\main\\resources\\static\\SwiperImg\\");
        registry.addResourceHandler("/image/bigType/**").addResourceLocations("file:F:\\CodeProject\\Java\\shop\\src\\main\\resources\\static\\BigTypeImg\\");
        registry.addResourceHandler("/image/product/**").addResourceLocations("file:F:\\CodeProject\\Java\\shop\\src\\main\\resources\\static\\ProductImg\\");
    }

}
